package cn.edu.nuc.zyb.frame;

import java.net.ServerSocket;
import java.net.Socket;
import java.util.ArrayList;
import java.util.List;

public class Server {

	static List<Socket> list;

	public static void main(String[] args) throws Exception {
		ServerSocket socket = new ServerSocket(4000);
		list = new ArrayList<>();
		while (true) {
			Socket s = socket.accept();
			// list.add(s);
			new UserAccept(s).start();
			new UserAcceptRegist(s).start();
		}

	}
}
